package com.yourname.xhs.entity;

public class User {
    private int userId;// 用户id
    private String userName;// 用户名
    private String password;//密码
    private String isadmin;//判断管理员

    public User() {
    }


    public User(int userId, String userName, String password, String isadmin) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.isadmin = isadmin;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getIsadmin() {
        return isadmin;
    }

    public void setIsadmin(String isadmin) {
        this.isadmin = isadmin;
    }

//    public String toString() {
//        return "User{" +
//                "userName='" + userName + '\'' +
//                ", isadmin='" + isadmin + '\'' +
//                '}';
//    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", isadmin='" + isadmin + '\'' +
                '}';
    }
}
